<div class="content-table">
    <?php
        echo $this->partial('topo_list.phtml', array(
            'titulo' => $this->titulo,
            'controller' => $this->controller, 
            'search' => $this->search,
            'add'   =>  $this->per_add, 
            'form_search' => TRUE,
        ));
    ?> 
    <table id="tlist" class="tb_content">
        <thead>
            <tr>
                <th>Código</th>
                <th>Nome</th>
                <th>&nbsp;</th>
            </tr>
        </thead>
        <tbody>
            <?php foreach ($this->result as $row) { ?>
                <tr>  
                    <td align="center"><?php echo $row->PAG_ID; ?></td>
                    <td align="left"><?php echo $row->PAG_TITULO; ?></td>
                    <td>
                        <?php if($this->per_del){?><a class="btn-cancel-list" href="javascript:void(0);" onclick="list_delete('<?php echo $this->controller; ?>', <?php echo $row->PAG_ID ?>, $(this));">Deletar</a><?php }?>
                        <?php if($this->per_edt){?><a class="btn-edt-list" href="<?php echo $this->url(array('controller' => $this->controller, 'action' => 'edit', 'id' => $row->PAG_ID)); ?>">Editar</a><?php }?>
                    </td>
                </tr>
            <?php } ?>
        </tbody>
    </table>
</div>
<?php echo $this->paginationControl($this->paginator, 'Sliding', 'pagination.phtml'); ?>